package com.sxran.im;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.sql.SQLException;
import java.util.TimeZone;

@MapperScan(value = {"com.sxran.im.dao"}, annotationClass = Mapper.class)
@SpringBootApplication
@EnableScheduling
@EnableCaching
@Import(cn.hutool.extra.spring.SpringUtil.class)
public class MCApplication implements CommandLineRunner {
    private static final Logger logger = LoggerFactory.getLogger(MCApplication.class);


    public static void main(String[] args) throws SQLException {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(MCApplication.class, args);
    }

    @Override
    public void run(String... var1) {
    }

}
